let gulp = require('gulp');
let mocha = require('gulp-mocha');
let env = require('gulp-env');

require('./gulp-base');


gulp.task("userAdd", ['set-test-node-env'], function () {

    return gulp.src([
        '../user/user.add.test.js'
    ]).pipe(mocha()).on('error', function (err) {
        process.exit(1);
    }).on('end', function () {
        process.exit(0);
    });
});

gulp.task("bookNameList", ['set-test-node-env'], function () {

    return gulp.src([
        '../book/book.list.name.test.js'
    ]).pipe(mocha()).on('error', function (err) {
        process.exit(1);
    }).on('end', function () {
        process.exit(0);
    });
});


